<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link href="/static/css/bootstrap.css" rel="stylesheet">

    <link href="/static/css/mystyle.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>

                <h1 class="logo-name"></h1>

            </div>
            <h3>系统登录</h3>
                {{result}}
                {{ form.non_field_errors }}
            <form role="form" class="m-t" method="post" action="{%url 'login'%}">
                {% csrf_token %}
                <div class="form-group">
                    <input type="text" class="form-control" id="username" name="username" placeholder="用户名" required>
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="password" name="password" placeholder="密码">
                </div>

		        <input type="hidden" name="next" value="{%url 'myapp:index'%}"/>
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>

            </form>




        </div>
    </div>




</body>

</html>
